package vumt.radiocountries.dialog;

import vumt.radiocountries.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DialogNoticeNetwork extends Activity implements OnClickListener {
	Button btnExit, btnReload;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_notice_network);

		btnExit = (Button) findViewById(R.id.btnExit);
		btnReload = (Button) findViewById(R.id.btnReload);
		btnExit.setOnClickListener(this);
		btnReload.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnExit:
			setResult(2);
			finish();
			break;
		case R.id.btnReload:
			setResult(3);
			finish();
			break;
		default:
			break;
		}

	}
}
